//
//  ZXZNoDataView.m
//  sheyingzu
//
//  Created by tyu on 29.5.24.
//

#import "ZXZNoDataView.h"

@interface ZXZNoDataView ()


@property(weak,nonatomic)UIImageView *ImgV;


@end
@implementation ZXZNoDataView

- (instancetype)initWithFrame:(CGRect)frame{

    if (self = [super initWithFrame:frame]) {

        
        [self SetupUI];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    [self SetupFrame];
}

- (void)SetupUI
{
    
    
    UIImageView *ImgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"no_data"]];
    [self addSubview:ImgV];
    self.ImgV = ImgV;
//
    UILabel *TitleLab = [[UILabel alloc]init];
    [self.self addSubview:TitleLab];
    self.TitleLab = TitleLab;
    TitleLab.font = [UIFont systemFontOfSize:15];
    TitleLab.textColor = [UIColor blackColor];
    TitleLab.text = @"幸运儿";
    TitleLab.textAlignment = NSTextAlignmentCenter;
    
    
}
- (void)SetupFrame
{
    self.ImgV.frame = CGRectMake(ScreenWidth/2-60, 0, 120, 120);
    self.TitleLab.frame = CGRectMake(0,CGRectGetMaxY(self.ImgV.frame), ScreenWidth, 20);

}

@end
